package com.baize.glinkad.bean.ads;

import android.app.Activity;

import com.baize.glinkad.bean.base.InterstitialModel;
import com.baize.glinkad.bean.listener.InterstitialListener;
import com.baize.glinkad.manager.ADManagerFactory;

public class InterstitialAD {

    public InterstitialModel interstitialModel;
    public String mPosId;

    public InterstitialAD(Activity activity, String posID) {
        this.interstitialModel = new InterstitialModel(activity, posID);
        this.mPosId = posID;
    }

    public void destroy() {
        this.interstitialModel.destroy();
    }

    public void init() {
        this.interstitialModel.init();
    }

    public boolean isReady() {
        return ADManagerFactory.instance().glinkAD.isInterstitialReady;
    }

    public void load() {
        this.interstitialModel.load();
    }

    public void setInterstitialListener(InterstitialListener interstitialListener) {
        this.interstitialModel.setInterstitialListener(interstitialListener);
    }

    public void show() {
        this.interstitialModel.show();
    }


}
